import server.core.GumballMachine;

/**
 * describe:
 *
 * @author helloworldyu
 * @data 2018/3/26
 */
public class Main {
	public static void main(String[] args) {
		GumballMachine gumballMachine = new GumballMachine(5);

		System.out.println(gumballMachine);
		System.out.println("The current gumball number is:" + gumballMachine.getCount());
		System.out.println("****************************************");


		gumballMachine.insertQuarter();
		gumballMachine.turnCrank();

		System.out.println(gumballMachine);
		System.out.println("The current gumball number is:" + gumballMachine.getCount());
		System.out.println("****************************************");

		gumballMachine.insertQuarter();
		gumballMachine.turnCrank();
		System.out.println(gumballMachine);
		System.out.println("The current gumball number is:" + gumballMachine.getCount());
		System.out.println("****************************************");

		gumballMachine.insertQuarter();
		gumballMachine.turnCrank();
		System.out.println(gumballMachine);
		System.out.println("The current gumball number is:" + gumballMachine.getCount());
		System.out.println("****************************************");
	}
}
